package com.qianfeng.chainmobile.api.config;


import com.qianfeng.smsplatform.common.constants.RabbitMqConsants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitConfig {
    /**
     * 声明队列,用于接收我们即将发送的短信,由策略进行处理接收
     * @return
     */
    @Bean
    public Queue topic_pre_send() {
        return new Queue(RabbitMqConsants.TOPIC_PRE_SEND);

    }
    @Bean
    public Queue push_sms_report_topic() {
        return new Queue(RabbitMqConsants.TOPIC_PUSH_SMS_REPORT);

    }
}
